/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.qx.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.qx.entity.QxLeagueMatches;
import com.thinkgem.jeesite.modules.qx.entity.QxTeam;
import com.thinkgem.jeesite.modules.qx.dao.QxTeamDao;

/**
 * 单表生成Service
 * @author zequs
 * @version 2017-08-23
 */
@Service
@Transactional(readOnly = true)
public class QxTeamService extends CrudService<QxTeamDao, QxTeam> {

	public QxTeam get(String id) {
		return super.get(id);
	}
	
	public List<QxTeam> findList(QxTeam qxTeam) {
		return super.findList(qxTeam);
	}
	
	public Page<QxTeam> findPage(Page<QxTeam> page, QxTeam qxTeam) {
		return super.findPage(page, qxTeam);
	}
	
	@Transactional(readOnly = false)
	public void save(QxTeam qxTeam) {
		super.save(qxTeam);
	}
	
	@Transactional(readOnly = false)
	public void delete(QxTeam qxTeam) {
		super.delete(qxTeam);
	}
	
	public Integer count(QxTeam qxTeam){
	    return dao.count(qxTeam);
	}
	
	public List<QxTeam> findStrongTeam(QxTeam qxTeam) {
	    return dao.findStrongTeam(qxTeam);
	}

    public List<QxTeam> findByIds(List<String> ids) {
        return dao.findByIds(ids);
    }
}